/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bahrie.interfaces;


import java.sql.SQLException;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.bahrie.entity.Buku;

/**
 *
 * @author bahrie
 */
public interface InterBuku {

    void insert(Buku o) throws DataAccessException;

    void update(Buku o) throws DataAccessException;

    void delete(String o) throws DataAccessException;

    List<Buku> getAll() throws DataAccessException;

    List<Buku> getByPenulis(String o) throws DataAccessException;

    List<Buku> getByPenerbit(String o) throws DataAccessException;

    List<Buku> getById(String o) throws DataAccessException;

    Buku getByOne(String o) throws DataAccessException;
}
